<%@ Page language="c#" Codebehind="CustomizeItem.aspx.cs" AutoEventWireup="false" Inherits="QuoteAdvantage.CustomizeItem" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
   <HEAD>
      <title>Customize Item</title>
      <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
      <meta content="C#" name="CODE_LANGUAGE">
      <meta content="JavaScript" name="vs_defaultClientScript">
      <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
      <link href="QuoteAdvantageStyles.css" type="text/css" rel="stylesheet">
      <script language="javascript" type="text/javascript">
         function onFormLoaded()
         {
            if (<%=m_bShowValidationWarning%> == true)
            {
               if (confirm("<%=strValidationProblems%>"))
               {
                  window.location = "<%=m_strCloseUrl%>";
               }
            }
         }
         
         function onCustomizeItem(strCategoryId, strProductNumber, nControlNumber)
         {
            var strControlName = "categoryList" + strCategoryId + "_" + nControlNumber;
            var ctlCheckbox = document.getElementById(strControlName);
            
            ctlCheckbox.checked = true;
            document.Form1.txtCustomizeData.value = strCategoryId + "," + strProductNumber;
            __doPostBack("btnCustomize", "");
            return false;
         }
      </script>
   </HEAD>
   <body class="QuoteAdvantagePage" onload="onFormLoaded()" MS_POSITIONING="GridLayout">
      <form id="Form1" method="post" runat="server">
         <DIV class="Toolbar" style="Z-INDEX: 102; LEFT: 0px; WIDTH: 712px; POSITION: absolute; TOP: 0px; HEIGHT: 22px"
            ms_positioning="GridLayout">
            <asp:linkbutton id="lnkUpdatePrice" style="Z-INDEX: 102; LEFT: 504px; POSITION: absolute; TOP: 0px"
               runat="server" CssClass="ToolbarButton" Height="20px" Width="96px">Update Price</asp:linkbutton>
            <asp:linkbutton id="lnkClose" style="Z-INDEX: 103; LEFT: 608px; POSITION: absolute; TOP: 0px" runat="server"
               CssClass="ToolbarButton" Height="20px" Width="96px">Close</asp:linkbutton>
         </DIV>
         <asp:label id="lblConfigWarning" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 24px"
            runat="server" CssClass="LabelError" Height="16px" Width="664px">There is a problem with the items that you have selected. Please correct the issue and press Update Price.</asp:label>
         <asp:panel id="pnlControlList" style="Z-INDEX: 105; LEFT: 8px; OVERFLOW: auto; POSITION: absolute; TOP: 64px"
            MS_POSITIONING="GridLayout" runat="server" CssClass="ConfiguratorPanel" Height="380px" Width="704px"></asp:panel>
         <asp:Label id="lblProductName" style="Z-INDEX: 106; LEFT: 8px; POSITION: absolute; TOP: 40px"
            runat="server" Width="528px" CssClass="Header">Product Name</asp:Label>
         <asp:Label id="lblPrice" style="Z-INDEX: 104; LEFT: 552px; POSITION: absolute; TOP: 40px" runat="server"
            Width="158px" Height="20px" CssClass="LabelPrice">$1,234,456</asp:Label>
         <asp:Button id="btnCustomize" style="Z-INDEX: 103; LEFT: 624px; POSITION: absolute; TOP: 464px"
            runat="server" Text="Customize"></asp:Button>
         <asp:TextBox id="txtCustomizeData" style="Z-INDEX: 107; LEFT: 464px; POSITION: absolute; TOP: 464px"
            runat="server"></asp:TextBox>
      </form>
   </body>
</HTML>
